package com.sooth.micro.camunda.converter.bean.subprocess;

import com.sooth.micro.camunda.converter.bean.BaseDefinition;
import com.sooth.micro.camunda.converter.bean.BpmnElementType;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

@Data
@NoArgsConstructor
public class SubProcessDefinition extends BaseDefinition {

    @NonNull
    private BaseDefinition childNode;

    @Override
    public String getNodeType() {
        return BpmnElementType.SUB_PROCESS.getElementTypeName().get();
    }
}
